package com.cskaoyan.bean.vo.back.configmanagement;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName:ChannelVo
 * @Auther: HeXianZu
 * @Description: 快递公司
 * @Date: 2022/10/13 11:59
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChannelVo<T> {

    List<T> data;
    String errmsg;
    int errno;

    public static <T> ChannelVo ok(List<T> data) {
        ChannelVo<T> channelVo = new ChannelVo<>();
        channelVo.setErrno(0);
        channelVo.setErrmsg("成功");
        channelVo.setData(data);
        return channelVo;
    }

}
